<script setup>
defineProps({
  filters: {
    type: Object,
    required: true
  },
  refetch: {
    type: Function,
    required: true
  },
  reset: {
    type: Function,
    required: true
  }
})
</script>

<template>
  <n-form inline label-placement="left">
    <n-form-item label="名称">
      <n-input v-model:value="filters.name" placeholder="请输入字典名称" clearable/>
    </n-form-item>
    <n-form-item label="编码">
      <n-input v-model:value="filters.code" placeholder="请输入字典编码" clearable/>
    </n-form-item>
    <n-form-item>
      <n-space>
        <n-button type="primary" @click="refetch">查询</n-button>
        <n-button @click="reset">重置</n-button>
      </n-space>
    </n-form-item>
  </n-form>
</template>

<style scoped>

</style>